/*
 * CAreaList.h
 *
 *  Created on: 11 Oct 2012
 *      Author: Mario Kleinsasser
 *		Time:	20:05:19
 */

#ifndef CAREALIST_H_
#define CAREALIST_H_

#include "CArea.h"

using namespace std;

class CAreaList {
private:
	CArea *first;
	CArea *last;

	int appendHToArea(CArea *area);
	int appendVToArea(CArea *area);
	CArea *appendVToArea(CArea *area, CArea *prev);

	CArea *actArea(CArea *area); /* Obsolete! All items will print itself*/

public:
	CAreaList(int M, int N);
	virtual ~CAreaList();

	void actAll();

	CArea* getArea(int N, int M);

	CArea* getFirst() const {
		return first;
	}


};

#endif /* CAREALIST_H_ */
